<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>


<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
* {
	border: 1;
}
</style>
<title>蓝调吉他社吉他小店</title>
<script type="text/javascript">
<!--
	function fsubmit() {
		if (searchForm.rcond[0].checked) {
			searchForm.action = "showallgoods.do?cond=all";
		} else if (searchForm.rcond[1].checked) {

			searchForm.action = "showallgoods.do?cond=precision";
		} else {
			searchForm.action = "showallgoods.do?cond=keyword";
		}
	}

	function hideall() {
		if (searchForm.rcond[0].checked) {
			pre.style.display = "none";
			key.style.display = "none";
		}
	}
	function showpre() {
		if (searchForm.rcond[1].checked) {
			pre.style.display = "";
			key.style.display = "none";
		}
		else
		{
			pre.style.display = "none";
		}
	}
	function showkey() {
		if (searchForm.rcond[2].checked) {
			key.style.display = "";
			pre.style.display = "none";
		} else {
			key.style.display = "none";
		}
	}
//-->
</script>
</head>
<body>
	<form name="searchForm" action="" method="post" onclick="fsubmit()">
		<input type="radio" name="rcond" onclick="hideall()">查看所有吉他
		<p>
			<input type="radio" name="rcond" onclick="showpre()">精确搜索
		<p>
		<table id=pre style="display: none;">
			<tr>
				<td>名称:</td>
				<td><input type="text" name="title"></td>
			</tr>
			<tr>
				<td>地址:</td>
				<td><input type="text" name="address"></td>
			</tr>
			<tr>
				<td>厂商:</td>
				<td><input type="text" name="manufacturers"></td>
			</tr>
			<tr>
				<td>价格:</td>
				<td><input type="text" name="price"></td>
			</tr>

		</table>
		<p>
			<input type="radio" name="rcond" onclick="showkey()">关键字搜索
		<p>
		<table id=key style="display: none;">
			<tr>
				<td>输入关键字</td>
				<td><input type="text" name="keyword"></td>
			</tr>
		</table>
		<p>
			<input type="reset" value="重新输入"> <input type="submit"
				value="搜索">
	</form>
	



	
</body>
</html>
